package cn.house.houseai.controller.admin;

import cn.house.houseai.service.UserService;
import cn.house.houseai.vo.ResultVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 羡y
 * @date 2024/9/30
 * @Description
 */
@RestController("AdminController")
@RequestMapping("/admin")
@Api(tags = "管理员读取接口")
@Slf4j
public class AdminController {
    @Resource
    private UserService userService;

    @GetMapping("/all")//
    @ApiOperation("查询所有用户的信息")
    public ResultVo queryAll() {

        return userService.queryAll();

    }


}
